<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="css/bootstrap.css" type="text/css" rel="stylesheet">
<link href="css/application.css" type="text/css" rel="stylesheet">

<title>美味书签</title>
</head>

<body>
	<%@include file="header.jsp"%>
	<!-- 主体部分 -->
	<div class="container">
		<div class="row">
			<!-- 主页的左半面 -->
			<div id="mainbar" class="span10">
				<h3>关注你的人/你关注的人</h3>
				<s:if test="userList.size <= 0">
					<div class="alert alert-success">你没有关注任何人/没有人关注你</div>
				</s:if>

				<s:iterator value="userList">
					<div class="row">
						<div class="feedUser span0">
							<img width="75" height="75" alt="profile pic"
								src="upload/<s:property value="avatar"/>">
						</div>
						<div class="span6">
							<div>
								<h3>
									<a href="listhome?userId=<s:property value="id"/>"><s:property
											value="username" /></a>
								</h3>
							</div>
							<div>
								<h6>
									<s:property value="introduce" />
								</h6>
							</div>
						</div>
						<div>
							<button class="pull-right btn btn-primary followBtn"
								fid="<s:property value="id" />"
								action="<s:property value="followAction"/>"
								data-loading-text="关注中" data-complete-text="取消关注">关注</button>
						</div>
					</div>
					<hr>
				</s:iterator>
				<s:if test="pageBean.pagingFlag">
					<div class="pagination pagination-centered">
						<input id="currentPage" type="hidden"
							value=<s:property value="pageBean.current"/>>
						<ul>
							<s:if test="1 not in pageBean.pages">
								<li><a href="#">1</a></li>
								<li><a class="disabled" href="#">...</a></li>
							</s:if>

							<s:iterator value="pageBean.pages" id="pageIndirect">
								<li><a class="pageUrl"
									href="?userId=<s:property value='userId'/>&pageBean.current=<s:property value="pageIndirect" />"><s:property
											value="pageIndirect" /></a></li>
							</s:iterator>
							<s:if test="feedPageBean.pageSize not in feedPageBean.pages">
								<li><a class="disabled" href="#">...</a></li>
								<li><a href="#"> <s:property value="pageBean.pageSize" />
								</a></li>
							</s:if>
						</ul>
					</div>
				</s:if>
			</div>
		</div>
	</div>

	<script type="text/javascript"
		src="http://v3.jiathis.com/code_mini/jia.js" charset="utf-8"></script>
	<script src="js/jquery-1.7.2.js"></script>
	<script src="js/bootstrap.js"></script>
	<script src="js/jquery.tagsinput.js"></script>
	<script src="js/application.js"></script>
</body>
</html>